package com.zoo.buyor.common.event.listener;

import com.zoo.buyor.common.event.UserOnlineEvent;
import com.zoo.buyor.common.event.UserRegisterEvent;
import org.springframework.stereotype.Component;
import org.springframework.transaction.event.TransactionPhase;
import org.springframework.transaction.event.TransactionalEventListener;

@Component

public class UserOnlineListener {
    @TransactionalEventListener(classes = UserOnlineEvent.class, phase = TransactionPhase.AFTER_COMMIT)
    private void  prologue(){

    }

}
